package com.fusetech.flow.audit.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;

import com.fusetech.flow.audit.domain.AuditNodeAuditor;
import com.fusetech.flow.audit.service.dto.AuditNodeAuditorDTO;
import org.apache.ibatis.annotations.Param;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;


/**
 * 审核节点对应发起人员表MAPPER接口
 * @author Liuwq
 * @version 2023-05-08
 */
public interface AuditNodeAuditorMapper extends BaseMapper<AuditNodeAuditor> {

    /**
     * 根据id获取审核节点对应发起人员表
     * @param id
     * @return
     */
    AuditNodeAuditorDTO findById(String id);

    /**
     * 获取审核节点对应发起人员表列表
     *
     * @param queryWrapper
     * @return
     */
    IPage <AuditNodeAuditorDTO> findList(Page <AuditNodeAuditorDTO> page, @Param(Constants.WRAPPER) QueryWrapper queryWrapper);

    /**
     * 审核通过节点id删除节点
     *
     * @param id id
     * @return int
     */
    int deleteNodeAuditorByNodeID(String id);
}
